package com.xuecheng.api.order;

import com.xuecheng.api.order.model.dto.OrdersDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.util.Map;

/**
 * Created on 2021/04/16/23:01 周五
 *
 * @author Lantin
 */
@Api(tags = "订单-订单服务接口Api")
public interface OrdersApi {

    @ApiOperation("创建用户要购买的课程的订单")
    OrdersDTO createOrder(Long coursePubId);

    @ApiOperation("创建课程订单的支付信息")
    Map<String, Object> createOrderPay(String orderNo);

    @ApiOperation("根据订单编号查询订单信息")
    OrdersDTO getOrderByOrderNo(String orderNo);

}
